/**
 * 
 */
package com.hera.process.config.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.hera.base.dao.repository.BaseRepository;
import com.hera.process.config.domain.BusinessDay;
import com.hera.process.config.domain.BusinessDayPK;

/**
 * @author cmontes
 *
 */
public interface BusinessDayDao extends BaseRepository<BusinessDay, BusinessDayPK> {

	@Modifying
	@Transactional
	@Query("delete from BusinessDay o where o.businessDayPK.idCalendar = ?")
	void deleteByCalendar(Long idCalendar);
}
